package com.study.tiger.service;

import com.study.tiger.pojo.City;
import com.study.tiger.util.TreeUtil;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TreeService {

    public List<City> BuildTree(List<City> list){
        List<City> baseTree4 = TreeUtil.testPredicate(list,(City a)->"0".equals(a.getPid()));
        return baseTree4;
    }
}
